import ReactDOM from 'react-dom/client'
let user={
    name:'刘备',
    age:39,
    job:'皇帝'
}
const introduce=user=>`我叫${user.name},今年${user.age}岁,职业是${user.job}`
const template=(<>
    <div>姓名:{user.name}</div>
    <div>年龄:{user.age}</div>
    <div>职业:{user.job}</div>
    <div>
        介绍:{introduce(user)}
    </div>
</>)
const root=ReactDOM.createRoot(document.querySelector('#root'))
root.render(template)